// pages/reservation/reservation.js
Page({
  data: {
    date: '2024-06-01',
    time: '12:00',
    tableTypes: ['小沙发卡座', '大沙发卡座', '多人桌', '包间桌'],
    tableType: '小沙发卡座'
  },
  bindDateChange(e) {
    this.setData({
      date: e.detail.value
    });
  },
  bindTimeChange(e) {
    this.setData({
      time: e.detail.value
    });
  },
  bindTableTypeChange(e) {
    this.setData({
      tableType: this.data.tableTypes[e.detail.value]
    });
  },
  makeReservation() {
    wx.showToast({
      title: '预约成功',
      icon: 'success',
      duration: 2000
    });
    // 保存预约信息到后端服务器
  }
});
